//
//  GradientCircleLayer.h
//  GraintCircleView
//
//  Created by huangwenchen on 15/4/24.
//  Copyright (c) 2015年 huangwenchen. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface GradientCircleLayer : CALayer

/**
 开始点 圆环从哪边开始，默认为底部中间
 */
@property (assign, nonatomic) CGFloat beginPointOffset;
/**
 结束点 圆环从哪边结束，默认为底部中间
 */
@property (assign, nonatomic) CGFloat endPointOffset;


- (instancetype)initWithFrame:(CGRect)rect fromColor:(UIColor *)fromColor to:(UIColor *)toColor lineWidth:(CGFloat)width;

-(instancetype)initGraintCircleWithBounds:(CGRect)bounds position:(CGPoint)position fromColor:(UIColor *)fromColor toColor:(UIColor *)toColor lineWidth:(CGFloat) linewidth;
//-(instancetype)initGraintCircleWithBounds:(CGRect)bounds position:(CGPoint)position fromColor:(UIColor *)fromColor toColor:(UIColor *)toColor lineWidth:(CGFloat) linewidth beginPointOffset:(CGFloat)beginPointOffset endPointOffset:(CGFloat)endPointOffset backgroundColor:(UIColor *)backColor;
+(instancetype)layerWithWithBounds:(CGRect)bounds
                          Position:(CGPoint)position
                         FromColor:(UIColor *)fromColor
                           ToColor:(UIColor *)toColor
                         LineWidth:(CGFloat) linewidth;
- (void)addProgress:(CGFloat)progress animated:(BOOL)animated;
- (void)addAnimationWithProgress:(CGFloat)progress;
- (void)addAnimationWithValuesArray:(NSArray<NSNumber *> *) values beginTimes:(NSArray<NSNumber *> *)beginTimes;
@end
